﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLPM.DAO;
using QLPM.DTO;
using System.Data;

namespace QLPM.BUS
{
    public class ThuocBUS
    {
        public List<Thuoc> DanhSachThuoc()
        {
            return new ThuocDAO().DanhSachThuoc();
        }

        public int ThemThuoc(Thuoc t)
        {
            return new ThuocDAO().ThemThuoc(t);
        }

        public int XoaThuoc(Thuoc t)
        {
            return new ThuocDAO().XoaThuoc(t);
        }

        public int SuaThuoc(Thuoc t)
        {
            return new ThuocDAO().SuaThuoc(t);
        }

        public int LayDonGiaTheoThuoc(int maThuoc, int maDonVi)
        {
            return new ThuocDAO().LayDonGiaTheoMaThuoc(maThuoc,maDonVi);
        }

        public List<DonVi> LayDonViChoThuoc(int MaThuoc)
        {
            return new ThuocDAO().LayDonViChoThuoc(MaThuoc);
        }

        public DataTable SuDungThuoc(int thang, int nam)
        {
            return new ThuocDAO().SuDungThuoc(thang, nam);
        }
    }
}
